import request from '../index'

import { AxiosResponse } from 'axios'
// 用户类型
import {UserType,LoginResponseType} from './authType'

// 登录API
export function login(data:UserType){
  return request.post('/api/login',data).then(
    res=>{
      console.log(res)
    },
    err=>{
      console.log(err)
    }
  )
}